package com.wrs.examsystem.util.wheel;

import com.wrs.examsystem.entity.Student;
import com.wrs.examsystem.entity.bean.StudentInformation;
import com.wrs.examsystem.entity.bean.StudentMark;

/**
 * @Author: 牛欣雨
 * @Date: 2024 / 06 / 17 / 16:34
 * @Description:
 */

public class StudentUtil {
    public static StudentMark studentInvertStudentMark(Student student){
        StudentMark studentMark = new StudentMark();
        studentMark.setStudentName(student.getStudentName());
        studentMark.setStudentNumber(student.getStudentNumber());
        studentMark.setStudentClass(student.getStudentClass());
        return studentMark;
    }
    public static StudentInformation studentInformation(Student student){
        StudentInformation studentInformation = new StudentInformation();
        studentInformation.setStudentName(student.getStudentName());
        studentInformation.setStudentNumber(student.getStudentNumber());
        studentInformation.setStudentClass(student.getStudentClass());
        studentInformation.setStudentSex(student.getStudentSex()==0?"男":"女");
        return studentInformation;
    }
}
